//
//  HLEToastView.h
//  HLETips
//
//  Created by hle1 on 2020/5/21.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface HLEToastView : UIView

/// loading
/// @param text 标题
/// @param view 显示在XX上
/// @param delay 0表示不自动hidden
+ (HLEToastView *)showLoading:(nullable NSString *)text
                       inView:(UIView *)view
               hideAfterDelay:(NSTimeInterval)delay;


/// 成功的提示
/// @param text 标题
/// @param view 显示在XX上
/// @param delay 0表示不自动hidden
+ (HLEToastView *)showSucceed:(NSString *)text
                   inView:(UIView *)view
           hideAfterDelay:(NSTimeInterval)delay;


/// 错误的提示
/// @param text 标题
/// @param view 显示在XX上
/// @param delay 0表示不自动hidden
+ (HLEToastView *)showError:(nullable NSString *)text
                     inView:(UIView *)view
             hideAfterDelay:(NSTimeInterval)delay;


/// 隐藏tips
/// @param view 显示在XX上的view
+ (void)hideAllTipsInView:(UIView *)view;

/// 隐藏所有的tips
+ (void)hideAllTips;
@end

NS_ASSUME_NONNULL_END
